import numpy as np


def gen_golden_data_sign():
    # 生成随机输入数据
    dtype = np.float32
    input_shape = [2048]
    output_shape = [2048]
    x = np.random.uniform(-10000, 10000, input_shape).astype(dtype)
    golden = (np.sign(x).astype(np.float32)).astype(np.float32)

    x.tofile("./input/input_x.bin")
    golden.tofile("./output/golden.bin")


if __name__ == "__main__":
    gen_golden_data_sign()
